package p270jp.pxv.android.legacy;

import android.util.SparseIntArray;
import android.view.View;
import androidx.databinding.DataBinderMapper;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import java.util.ArrayList;
import java.util.List;
import p089d.C2421c;
import p270jp.pxv.android.R;
import p396oi.ViewErrorInfoBindingImpl;
import p396oi.ViewNotFoundInfoBindingImpl;
import p396oi.ViewTooManyMuteInfoBindingImpl;

/* renamed from: jp.pxv.android.legacy.DataBinderMapperImpl */
/* loaded from: classes2.dex */
public class DataBinderMapperImpl extends DataBinderMapper {

    /* renamed from: a */
    public static final SparseIntArray f19053a;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray(3);
        f19053a = sparseIntArray;
        sparseIntArray.put(R.layout.view_error_info, 1);
        sparseIntArray.put(R.layout.view_not_found_info, 2);
        sparseIntArray.put(R.layout.view_too_many_mute_info, 3);
    }

    @Override // androidx.databinding.DataBinderMapper
    /* renamed from: a */
    public List<DataBinderMapper> mo4584a() {
        ArrayList arrayList = new ArrayList(1);
        arrayList.add(new androidx.databinding.library.baseAdapters.DataBinderMapperImpl());
        return arrayList;
    }

    @Override // androidx.databinding.DataBinderMapper
    /* renamed from: b */
    public ViewDataBinding mo4583b(DataBindingComponent fVar, View view, int i) {
        int i2 = f19053a.get(i);
        if (i2 <= 0) {
            return null;
        }
        Object tag = view.getTag();
        if (tag == null) {
            throw new RuntimeException("view must have a tag");
        } else if (i2 != 1) {
            if (i2 != 2) {
                if (i2 != 3) {
                    return null;
                }
                if ("layout/view_too_many_mute_info_0".equals(tag)) {
                    return new ViewTooManyMuteInfoBindingImpl(fVar, view);
                }
                throw new IllegalArgumentException(C2421c.m7804b("The tag for view_too_many_mute_info is invalid. Received: ", tag));
            } else if ("layout/view_not_found_info_0".equals(tag)) {
                return new ViewNotFoundInfoBindingImpl(fVar, view);
            } else {
                throw new IllegalArgumentException(C2421c.m7804b("The tag for view_not_found_info is invalid. Received: ", tag));
            }
        } else if ("layout/view_error_info_0".equals(tag)) {
            return new ViewErrorInfoBindingImpl(fVar, view);
        } else {
            throw new IllegalArgumentException(C2421c.m7804b("The tag for view_error_info is invalid. Received: ", tag));
        }
    }

    @Override // androidx.databinding.DataBinderMapper
    /* renamed from: c */
    public ViewDataBinding mo4582c(DataBindingComponent fVar, View[] viewArr, int i) {
        if (viewArr == null || viewArr.length == 0 || f19053a.get(i) <= 0 || viewArr[0].getTag() != null) {
            return null;
        }
        throw new RuntimeException("view must have a tag");
    }
}
